<template>
  <div style="background-color:#f7f8fa;height: 100vh;">
    <van-nav-bar title="结果查询" left-text="返回" left-arrow @click-left="onClickLeft" />
    <div class="views">
      <div class="ViewsText">
        <span class="text"> <b>姓名：</b>{{ result.fullName }}</span>
      </div>
      <div class="ViewsText">
        <span class="text"> <b>员工工号：</b>{{ result.employeeCode }}</span>
      </div>
      <div class="ViewsText">
        <span class="text"> <b>审核状态：</b>{{ result.isChecked }}</span>
      </div>
      <div class="ViewsText">
        <span class="text"> <b>录入状态：</b>{{ result.entryStatusName }}</span>
      </div>
      <div class="ViewsText">
        <span class="text"> <b>驳回原因：</b>{{ result.errorInfo }}</span>
      </div>
      <div class="ViewsText">
        <span class="text"> <b>管理人员姓名：</b>{{ result.cname }}</span>
      </div>
      <div class="ViewsText">
        <span class="text"> <b>管理人员电话：</b>{{ result.cmobile }}</span>
      </div>
    </div>


  </div>

</template>

<script>
import { getResultInfo } from '@/api/QueryStatus.js'
import { useCounterStore } from '@/pinia/user.js'
import { Toast } from 'vant'
import { toRefs } from 'vue'
const CounterStore = useCounterStore()
export default {
  name: 'QueryStatus',
  setup() {
    const status = reactive({
      result: {}
    })
    const onClickLeft = () => history.back();
    getResultInfo(CounterStore.mobile).then(res => {
      if (res.success) {
        status.result = res.message
      } else {
        Toast.fail(res.message)
      }
    })
    return {
      ...toRefs(status),
      onClickLeft
    }
  }
}

</script>
<style>
.views {
  text-align: left;
  padding: 5%;
}

.ViewsText {
  padding: 10px;
}
</style>
